package com.wuye.charge.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.wuye.charge.mapper.WyCostMapper;
import com.wuye.charge.domain.WyCost;
import com.wuye.charge.service.IWyCostService;

/**
 * 费用新增Service业务层处理
 * 
 * @author lishuo
 * @date 2024-11-22
 */
@Service
public class WyCostServiceImpl implements IWyCostService 
{
    @Autowired
    private WyCostMapper wyCostMapper;

    /**
     * 查询费用新增
     * 
     * @param costId 费用新增主键
     * @return 费用新增
     */
    @Override
    public WyCost selectWyCostByCostId(Long costId)
    {
        return wyCostMapper.selectWyCostByCostId(costId);
    }

    /**
     * 查询费用新增列表
     * 
     * @param wyCost 费用新增
     * @return 费用新增
     */
    @Override
    public List<WyCost> selectWyCostList(WyCost wyCost)
    {
        return wyCostMapper.selectWyCostList(wyCost);
    }

    /**
     * 新增费用新增
     * 
     * @param wyCost 费用新增
     * @return 结果
     */
    @Override
    public int insertWyCost(WyCost wyCost)
    {
        return wyCostMapper.insertWyCost(wyCost);
    }

    /**
     * 修改费用新增
     * 
     * @param wyCost 费用新增
     * @return 结果
     */
    @Override
    public int updateWyCost(WyCost wyCost)
    {
        return wyCostMapper.updateWyCost(wyCost);
    }

    /**
     * 批量删除费用新增
     * 
     * @param costIds 需要删除的费用新增主键
     * @return 结果
     */
    @Override
    public int deleteWyCostByCostIds(Long[] costIds)
    {
        return wyCostMapper.deleteWyCostByCostIds(costIds);
    }

    /**
     * 删除费用新增信息
     * 
     * @param costId 费用新增主键
     * @return 结果
     */
    @Override
    public int deleteWyCostByCostId(Long costId)
    {
        return wyCostMapper.deleteWyCostByCostId(costId);
    }
}
